<script type="text/template">
    <%
    for(var i=0;i<result.length;i++){
        var item = result[i];
    %>
        <div class="classAll" data-id="<%= item.id %>" data-name="<%= item.name %>" >
            <div class="classAlltitle">
                <span><%= item.name %></span>
                <span><%= item.num %></span>
            </div>
            <ul>
                <%
            for(var j=0;j<item.childer.length;j++){
                var li_item = item.childer[j];
                %>
                 <li class="changeMoreDivList" data-name="<%= li_item.id %>">
                     <span>
                         <%= li_item.name %>
                         <%= li_item.num %>
                    </span>
                </li>

          <%  }%>

            </ul>

        </div>

    <%}%>
</script>